package com.yuwubao.hz_International.entities.repository;

import com.yuwubao.hz_International.entities.BannerImgEntity;
import org.jetbrains.annotations.NotNull;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * Created by yangyu on 2018/1/29.
 */
public interface BannerImgRepository extends JpaRepository<BannerImgEntity, Integer>, JpaSpecificationExecutor<BannerImgEntity> {
    @NotNull
    @Query("select bannerUrl from BannerImgEntity order by id desc ")
    List<String> all_banner();
}
